﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Post.aspx.cs" Inherits="MGXAPI.Test.Post" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*"/>
    <script src="../Scripts/jquery-3.3.1.min.js"></script>
    <script type="text/javascript">
        $(function () {
            var url = "https://www.jsonfree.com/mgxapi/api/Auth/Login";
            //url = "http://localhost:13772/api/Auth/Login";
            //url = "http://localhost/MGX/api/Auth/Login";
            $.ajax({
                type: 'POST',
                url: url,
                data: { "LoginName": "xiaoming1", "PassWord": "123456", "Source": "4", "IsData": "0" },
                success: function (ret) {
                    debugger
                    alert(JSON.stringify(ret));
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="testPost">
            test
        </div>
    </form>
</body>
</html>
